import 'package:flutter/foundation.dart';
import 'package:get/get.dart';
import 'package:get/get_state_manager/src/rx_flutter/rx_getx_widget.dart';
import 'package:get/get_state_manager/src/simple/get_controllers.dart';
import 'package:provider/provider.dart';
import 'package:sp_util/sp_util.dart';

import '../bean/work_post_manager_entity.dart';

class WorkRulesPageController extends GetxController {
  var maxAge = "".obs;

  var salaryDate = "".obs;

  void updateMaxAge(String? age) {
    maxAge.value = age ?? "70";
  }

  void updateSalaryDate(String? date) {
    salaryDate.value = date ?? "25日";
  }

  var isEntryBeforeToday = false.obs;

  void updateEntryBeforeToday(bool value) {
    isEntryBeforeToday.value = value;
  }

  var isUploadNotGuilty = false.obs;

  void updateUploadNotGuilty(bool value) {
    isUploadNotGuilty.value = value;
  }

  var isEntrySign = false.obs;

  void updateEntrySign(bool value) {
    isEntrySign.value = value;
  }
}
